package org.grow.jssp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;

@TableName(value = "downloadlog")
public class Downloadlog {
    @TableId(value = "downloadLogId", type = IdType.AUTO)
    private Integer downloadLogId;

    @TableField(value = "downloadTime")
    private LocalDateTime downloadTime;

    @TableField(value = "userName")
    private String userName;

    @TableField(value = "fileName")
    private String fileName;

    @TableField(value = "targetFile")
    private String targetFile;

    @TableField(value = "`state`")
    private String state;

    public static final String COL_DOWNLOADLOGID = "downloadLogId";

    public static final String COL_DOWNLOADTIME = "downloadTime";

    public static final String COL_USERNAME = "userName";

    public static final String COL_FILENAME = "fileName";

    public static final String COL_TARGETFILE = "targetFile";

    public static final String COL_STATE = "state";

    /**
     * @return downloadLogId
     */
    public Integer getDownloadLogId() {
        return downloadLogId;
    }

    /**
     * @param downloadLogId
     */
    public void setDownloadLogId(Integer downloadLogId) {
        this.downloadLogId = downloadLogId;
    }

    /**
     * @return downloadTime
     */
    public LocalDateTime getDownloadTime() {
        return downloadTime;
    }

    /**
     * @param downloadTime
     */
    public void setDownloadTime(LocalDateTime downloadTime) {
        this.downloadTime = downloadTime;
    }

    /**
     * @return userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * @return fileName
     */
    public String getFileName() {
        return fileName;
    }

    /**
     * @param fileName
     */
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    /**
     * @return targetFile
     */
    public String getTargetFile() {
        return targetFile;
    }

    /**
     * @param targetFile
     */
    public void setTargetFile(String targetFile) {
        this.targetFile = targetFile;
    }

    /**
     * @return state
     */
    public String getState() {
        return state;
    }

    /**
     * @param state
     */
    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", downloadLogId=").append(downloadLogId);
        sb.append(", downloadTime=").append(downloadTime);
        sb.append(", userName=").append(userName);
        sb.append(", fileName=").append(fileName);
        sb.append(", targetFile=").append(targetFile);
        sb.append(", state=").append(state);
        sb.append("]");
        return sb.toString();
    }
}